package com.qiang.test02;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Demo04 {
    public static void main(String[] args) throws IOException {
        /*FileWriter fw = new FileWriter("ss.txt");
        fw.write("中国人民共和国");
        fw.close();*/
        FileReader fr = new FileReader("ss.txt");
        char[] bb = new char[1024];
        int read = fr.read();
        //System.out.println((char)read);
        while(read!=-1){
            System.out.print((char)read);
            read = fr.read();

        }

    }
}
